CPP = g++
OPTS =  -I"../irrlicht-1.2/include" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"../irrlicht-1.2/lib/Linux" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11

winCPP = i586-mingw32msvc-g++
win32OPTS =  -I"../irrlicht-1.2/include" -I"win32/include" -L"win32/lib"  -L"../irrlicht-1.2/lib/Win32-gcc" -lIrrlicht -lopengl32 -lglu32 -lwsock32 -lpthreadGC

all:
	$(CPP) main.cpp jeux.cpp thread.cpp -o yugioh $(OPTS)

win32: main.cpp jeux.cpp thread.cpp
	$(winCPP) main.cpp jeux.cpp thread.cpp -o yugioh.exe $(win32OPTS) 

clean:
	rm yugioh
	rm yugioh.exe
